<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/commons/include/html_doctype.html" %>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@include file="/commons/page/codegen.jsp" %>
		<script type="text/javascript" src="${ctx}/js/gpoint/rdp/campusPid/campusPid.js"></script>
		<title>身份表管理列表</title>
	</head>
	<body>
		<div class="wrapper wrapper-content  animated fadeInRight col-sm-12">
			<div  class="toolbar-panel ">
				<div class="toolbar-box">
					 <div class="toolbar-head clearfix">
						<!-- 顶部按钮 -->
						<div class="buttons"> 		
							 <a class="btn btn-primary fa fa-search" href="javascript:void(0);" ><span>搜索</span></a>
							<%-- <a class="btn btn-primary fa fa-add"   href="${ctx}/rdp/campusPid/campusPid/edit.htm" ><span>添加</span></a>
					        <a class="btn btn-primary fa fa-edit"   href="javascript:void(0);"  action="${ctx}/rdp/campusPid/campusPid/edit.htm" ><span>编辑</span></a>	 
					        <a class="btn btn-primary fa fa-remove" href="javascript:void(0);"  action="${ctx}/rdp/campusPid/campusPid/remove.htm"><span>删除</span></a> --%>
						<!--  <a class="btn btn-primary fa "   href="javascript:void(0);"  onclick="selectMember();"><span>確定</span></a> -->
						
						</div>
						<!-- 收缩 -->
						<div class="tools">
							<a href="javascript:void(0);" class="collapse">
								<i class="bigger-180 fa  fa-angle-double-up"></i>
							</a>
						</div>
					</div> 
					<!-- #查询条件-->
					<div class="toolbar-body" >
						<form role="form" class="search-form">
							<div  class="form-inline p-xxs">
								<div class="form-group">
									<label   class="search-label">卡类型</label>:
									<!-- <input type="text"  name="Q^CARDTYPE^SL"  class="form-control"  /> -->
									<select  name="Q^CARDTYPE^S" class="form-control" style="width:150px;">
									     <option value="">全部</option>
									     <option value="1">教师</option>
									     <option value="0">学生</option>
									     <option value="2">临时人员</option>
									</select>
								</div> 
								<!-- <div class="form-group">
									<label   class="search-label">身份ID</label>:
									<input type="text"  name="Q^PID^SL"  class="form-control"  />
									
								</div>  -->
								<div class="form-group">
									<label   class="search-label">身份名称</label>:
									<input type="text"  name="Q^PIDNAME^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">助记码</label>:
									<input type="text"  name="Q^EASYCODE^SL"  class="form-control"  />
								</div> 
								<!-- <div class="form-group">
									<label   class="search-label">启用</label>:
									<input type="text"  name="Q^USEFLAG^SL"  class="form-control"  />
								</div>  -->
								<!-- <div class="form-group">
									<label   class="search-label">扩展1</label>:
									<input type="text"  name="Q^EXT1^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">扩展2</label>:
									<input type="text"  name="Q^EXT2^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">扩展3</label>:
									<input type="text"  name="Q^EXT3^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label class="search-label">创建时间 </label>:
									<input type="text" name="Q^CREATE_TIME_^DL"  class="form-control date"  />
								</div>
								<div class="form-group">
									<label class="search-label" >至</label>:
									<input type="text" name="Q^CREATE_TIME_^DG"  class="form-control date" />
								</div>
								<div class="form-group">
									<label class="search-label">更新时间 </label>:
									<input type="text" name="Q^UPDATE_TIME_^DL"  class="form-control date"  />
								</div>
								<div class="form-group">
									<label class="search-label" >至</label>:
									<input type="text" name="Q^UPDATE_TIME_^DG"  class="form-control date" />
								</div>
								<div class="form-group">
									<label   class="search-label">创建人</label>:
									<input type="text"  name="Q^CREATE_BY_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">更新人</label>:
									<input type="text"  name="Q^UPDATE_BY_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">IP地址</label>:
									<input type="text"  name="Q^IP_^SL"  class="form-control"  />
								</div> 
								<div class="form-group">
									<label   class="search-label">服务商代码</label>:
									<input type="text"  name="Q^SERVICECODE^SL"  class="form-control"  />
								</div>  -->
							</div>
						</form>
					</div><!--/ 查询条件-->
				</div>
			</div><!--/ 操作、查询-->
			<div class="jqGrid_wrapper">
				<table id="campusPidGrid" ></table>
				<div id="campusPidPager"></div>
			</div>
		</div>
	
	<script type="text/javascript">
	   //全局變量
	 
	   var selectIds = [];
	   function selectMember(){	
		   var win1=  window.parent;
		  // alert("selectIds="+selectIds);
		   win1.opener.initIds(selectIds);
	   }
	   
	   
	   
	   var ids=null; //设置为全局变量
	   
	   function stringbuilder()
	      {
	      　 　this.arr = new Array();
	      　　this.append=function(str)
	      　　{
	      　　　　this.arr.push(str);
	      　　}
	      　　this.tostring = function()
	      　　{
	      　　　　return this.arr.join('');
	      　　}
	      }
	   
	   //被主界面获取
	   function editController(index,callbackFun){
		 //获取界面ids
		   
		   ids=$('#campusPidGrid').jqGrid('getGridParam','selarrrow');
						           // var ids = jQuery("#currentPermissionGrid").jqGrid('getGridParam','selarrrow');
						            // alert("ids=="+ids);
						           //  console.log("ids=="+ids);
						           //  alert("ids=="+ids);
						             var sb = new stringbuilder();
						             
						            for (var i=0;i<ids.length;i++)
						            	{
						            	
						                 var rowData= jQuery("#campusPidGrid").jqGrid("getRowData",ids[i]);
								 	       //   alert(JSON.stringify(rowData));
								     		
								    		 //获取数值
								    		 console.log(rowData.pid);
								    		
								            //獲取卡uid
											
								    		 sb.append(rowData.pid+","); 
						            	}
						            basic=sb.tostring();
						            selectIds=basic.substring(0, basic.length - 1); 
						              
		 // alert("子界面ids="+ids);
		  
		  callbackFun(selectIds);
		 // closefunc();//关闭窗口
		  return ids; 
	   }
	   
	   
	   
</script>
	</body>
	
</html>